#!/bin/bash

#实时处理 res_vipGap 表
sh /home/marvin/realtime_job/sql/select/res_vipGap_select.sh  |awk -F '\t' -f /home/marvin/realtime_job/awk/res_vipGap.awk >/home/marvin/realtime_job/sql/replace/res_vipGap_replace.sql
mysql -uroot  -proot </home/marvin/realtime_job/sql/replace/res_vipGap_replace.sql

mysql -uroot  -proot -e "replace into result.res_update(res_table) VALUES('res_vipGap')"
